package com.ang.future.config;

import org.springframework.stereotype.Component;

import java.util.concurrent.ThreadFactory;

/**
 * @author ssang
 * @date 2023-03-04 8:54
 */
@Component
public class MyThreadFactory implements ThreadFactory {
    public Thread newThread(Runnable r) {
        return new Thread(r, "t_pl_pool_" + r.hashCode());
    }
}
